package framework.apache.common.codec.SHA;
import java.io.UnsupportedEncodingException;

import org.apache.commons.codec.digest.DigestUtils;
public class SHADemo {
	private static String ShaTest(String str) {
		try {
			System.out.println("SHA 编码后：" + new String(DigestUtils.shaHex(str.getBytes("UTF-8"))));
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return str;
	}
}
